package component.crawler.htmlunit;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.Map;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		/*String a;
		try {
			a = URLDecoder.decode("7%7C0%7C23%7Chttp%3A%2F%2Fwww.google.com%2Faffiliatenetwork%2F%7C2B72102134800C5A174FC0FE21851737%7Ccom.google.ads.affiliatenetwork.frontend.reporting.shared.Request%2F1410198848%7CAdvertiser%7Ccom.google.common.collect.RegularImmutableList%2F440499227%7Cjava.lang.Integer%2F3438268394%7C20121212%7C20121211%7Ccom.google.ads.affiliatenetwork.frontend.reporting.shared.Filter%2F1122161975%7Ccom.google.ads.affiliatenetwork.proto.gwt.Reporting%24ColumnId%24Name%2F18498674%7Ccom.google.ads.affiliatenetwork.far.reporting.client.PatternSet%2F734325080%7Ccom.google.common.collect.SingletonImmutableList%2F4247067418%7Ccom.google.ads.affiliatenetwork.far.reporting.client.PatternSet%24Pattern%2F1040566862%7Cjava.util.ArrayList%2F4159755760%7Cjava.lang.String%2F2004016611%7CACTIVE%7Ccom.google.ads.affiliatenetwork.proto.gwt.Reporting%24Pattern%24MatchType%2F483255894%7C8454%7Ccom.google.common.collect.EmptyImmutableList%2F148276762%7Ccom.google.ads.affiliatenetwork.frontend.reporting.shared.ReportingRequestContext%2F2986961208%7Ccom.google.ads.affiliatenetwork.frontend.reporting.shared.ReportingRequestContext%24Perspective%2F2274603856%7Ccom.google.ads.affiliatenetwork.proto.gwt.Reporting%24TimeRange%24TimeUnitType%2F303238931%7Ccom.google.common.collect.EmptyImmutableBiMap%2F4216381077%7C1%7C2%7C3%7C4%7C0%7C5%7C12%7C6%7C8%7C6%7C12%7C6%7C16%7C6%7C17%7C6%7C18%7C6%7C19%7C6%7C20%7C6%7C21%7C6%7C24%7C6%7C25%7C6%7C26%7C6%7C43%7C7%7C8%7C5%7C2%7C9%7C10%7C59%7C11%7C12%7C13%7C14%7C1%7C15%7C16%7C17%7C3%7C9%7C10%7C22%7C11%7C12%7C13%7C14%7C1%7C15%7C18%7C-23%7C5%7C0%7C19%7C6%7C1000%7C-31%7C20%7CCEG%7C21%7C0%7C-34%7C-34%7C0%7C12%7C10%7C80%7C0%7C0%7C22%7C0%7C0%7C23%7C","UTF-8");
			System.out.println(a);
			a = URLDecoder.decode("7|0|25|http://www.google.com/affiliatenetwork/|2B72102134800C5A174FC0FE21851737|com.google.ads.affiliatenetwork.frontend.reporting.shared.ReportService|getReport|com.google.ads.affiliatenetwork.frontend.reporting.shared.Request/1410198848|Advertiser|com.google.common.collect.RegularImmutableList/440499227|java.lang.Integer/3438268394|20121211|20121210|com.google.ads.affiliatenetwork.frontend.reporting.shared.Filter/1122161975|com.google.ads.affiliatenetwork.proto.gwt.Reporting$ColumnId$Name/18498674|com.google.ads.affiliatenetwork.far.reporting.client.PatternSet/734325080|com.google.common.collect.SingletonImmutableList/4247067418|com.google.ads.affiliatenetwork.far.reporting.client.PatternSet$Pattern/1040566862|java.util.ArrayList/4159755760|java.lang.String/2004016611|ACTIVE|com.google.ads.affiliatenetwork.proto.gwt.Reporting$Pattern$MatchType/483255894|8454|com.google.common.collect.EmptyImmutableList/148276762|com.google.ads.affiliatenetwork.frontend.reporting.shared.ReportingRequestContext/2986961208|com.google.ads.affiliatenetwork.frontend.reporting.shared.ReportingRequestContext$Perspective/2274603856|com.google.ads.affiliatenetwork.proto.gwt.Reporting$TimeRange$TimeUnitType/303238931|com.google.common.collect.EmptyImmutableBiMap/4216381077|1|2|3|4|1|5|5|6|0|7|12|8|8|8|12|8|16|8|17|8|18|8|19|8|20|8|21|8|24|8|25|8|26|8|43|9|10|7|2|11|12|59|13|14|15|16|1|17|18|19|3|11|12|22|13|14|15|16|1|17|20|-23|31|0|21|8|1000|-31|22|CEG|23|0|-34|-34|0|14|12|80|0|0|24|0|0|25|","UTF-8");
			System.out.println(a);
		} catch (UnsupportedEncodingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
		
		Map<String , Object> map = new HashMap<String, Object>(100);
		map.put("sss", "dd");
		map.put("sssss", null);
		map.put( null,"dd");
		System.out.println(map.size());
		System.out.println(map.get(null));
	}

}
